package com.ruoyi.location.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.utils.ShiroUtils;
import com.ruoyi.location.domain.login.LoginDomainService;
import com.ruoyi.location.repository.LoginRepository;
import com.ruoyi.location.repository.generator.entity.LocationUserInfo;
import com.ruoyi.location.service.AppService;
import com.ruoyi.location.vo.req.LocationReportReq;
import com.ruoyi.location.vo.req.LoginReq;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/location/")
public class ReportController extends BaseController {

    @Autowired
    private AppService appService;

    @PostMapping("/report")
    public Object reportRecord(@RequestBody LocationReportReq locationReportReq) {
        locationReportReq.setUserId(ShiroUtils.getUserId());
        appService.locationReport(locationReportReq);
        return success();
    }


}
